﻿package mortal.game.scene3D.display3d.text3d.staticText3d
{
    import __AS3__.vec.*;
    import baseEngine.core.*;
    import mortal.game.scene3D.layer3D.*;

    public class SText3DMesh extends Mesh3D
    {
        public var vcListMap:Vector.<VcList>;
        private static var vcListPool:Vector.<VcList> = new Vector.<VcList>;

        public function SText3DMesh(param1:Boolean)
        {
            this.vcListMap = new Vector.<VcList>;
            super("SText3DMesh", param1, LastRender.instance.renderList);
            return;
        }// end function

        override public function dispose(param1:Boolean = true) : void
        {
            super.dispose(param1);
            this.vcListMap = null;
            return;
        }// end function

        public function clearAll() : void
        {
            var _loc_1:VcList = null;
            for each (_loc_1 in this.vcListMap)
            {
                
                vcListPool.push(_loc_1);
                _loc_1.dispose();
            }
            this.vcListMap.length = 0;
            VcList.totalUseNum = 0;
            return;
        }// end function

        public function createNewVcList() : VcList
        {
            var _loc_1:VcList = null;
            if (vcListPool.length > 0)
            {
                _loc_1 = vcListPool.shift();
            }
            else
            {
                _loc_1 = new VcList();
            }
            this.vcListMap.push(_loc_1);
            return _loc_1;
        }// end function

    }
}
